<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
var scor = prompt("请输入小明的成绩")
    if (scor==100){
        alert("一辆BMW");
    }else if (scor<=99 && scor >= 80){
        alert("一台iphone15s");
    }else if (scor<80 && scor >= 60){
        alert("参考书一本");
    }else if (scor<60){
        alert("恭喜两本练习题册");
    }else{
        alert("你输入的成绩有误");
    }

</script>
